package com.gui.juc.base.safe;

import java.time.format.DateTimeFormatter;
import java.time.temporal.TemporalAccessor;

public class DateTimeFormatDemo {

    public static void main(String[] args) {

        DateTimeFormatter dft = DateTimeFormatter.ofPattern("yyyy-MM-dd");
        TemporalAccessor parse = dft.parse("2024-06-21");
    }
}
